package com.qj.yantaishan.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qj.yantaishan.common.annotation.Excel;
import com.qj.yantaishan.common.core.domain.BaseEntity;

/**
 * 仓库分配库存关系对象 shanglala_store_physical_quantity
 * 
 * @author qihe
 * @date 2022-07-22
 */
public class StorePhysicalQuantity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long pigcmsId;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Integer storeId;

    /** 仓库/门店id */
    @Excel(name = "仓库/门店id")
    private Integer physicalId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** sku规格id */
    @Excel(name = "sku规格id")
    private Long skuId;

    /** 库存 */
    @Excel(name = "库存")
    private Integer quantity;

    /** 库存版本，减库存会更新此字段，递增1 */
    @Excel(name = "库存版本，减库存会更新此字段，递增1")
    private Long stockVersion;

    public void setPigcmsId(Long pigcmsId) 
    {
        this.pigcmsId = pigcmsId;
    }

    public Long getPigcmsId() 
    {
        return pigcmsId;
    }
    public void setStoreId(Integer storeId) 
    {
        this.storeId = storeId;
    }

    public Integer getStoreId() 
    {
        return storeId;
    }
    public void setPhysicalId(Integer physicalId) 
    {
        this.physicalId = physicalId;
    }

    public Integer getPhysicalId() 
    {
        return physicalId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setSkuId(Long skuId) 
    {
        this.skuId = skuId;
    }

    public Long getSkuId() 
    {
        return skuId;
    }
    public void setQuantity(Integer quantity) 
    {
        this.quantity = quantity;
    }

    public Integer getQuantity() 
    {
        return quantity;
    }
    public void setStockVersion(Long stockVersion) 
    {
        this.stockVersion = stockVersion;
    }

    public Long getStockVersion() 
    {
        return stockVersion;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pigcmsId", getPigcmsId())
            .append("storeId", getStoreId())
            .append("physicalId", getPhysicalId())
            .append("productId", getProductId())
            .append("skuId", getSkuId())
            .append("quantity", getQuantity())
            .append("stockVersion", getStockVersion())
            .toString();
    }
}
